#!/usr/bin/env bash
# 将执行目录移动到 当前文件所在目录
cd `dirname $0`

domain=${1}

certbot certonly -a certbot-dns-dnspod:dns-dnspod \
    --certbot-dns-dnspod:dns-dnspod-credentials `pwd`/dnspod.ini \
    --server https://acme-v02.api.letsencrypt.org/directory\
    -d ${domain} \
    -d "*.${domain}"
